package com.kgc.vo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AlipayConfig {
    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    @Value("${pay.alipay.app_id}")
    private String app_id = null;

    public String getApp_id() {
        return app_id;
    }

    public void setApp_id(String app_id) {
        this.app_id = app_id;
    }

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCon+EH9sKOglkpKX5ul034olA5pY0DG2jeB3Eacbew19C6rDUtv83IGd+7MP06mBowXXgn10p/N0V7wwqgQT5b77kb/eLnILMTVzc8q3fc85GgUwun5T5wKglyBfOy3LsVzJZvY/oCZri8J3v8lwvlXxDp6PR7FXhlThRL6qvhyDE4VRYGT9Rf28KzvpWR7Ht1WenU0y9h0neYvjuwAe+c2d9HJccLy0ZQO4x/hCqjfEA+fvntTpZQDB6/GKlwZwZK8yNZWKGMXg9/bB/BB0yKDPBY4QAeCvUxGoobYRZqk2P5lh7cUtzhLvOcFmvsjJtzP5JAQ5heLi3Ga6P93Y+xAgMBAAECggEBAIBpYIEkFX1ZHnUOOE4XwzT4xodf30bidLXAjQ1KVEzDzRybT9QLILalnY97+xvIAQmb5IjSltTSToO1QD5R8R8qK5l5enXwnO65mEMHgTwt8FRbaaDuHuJj4NWIWtF27rHnHxis1hNGDqCaoPz2OgTupH68/JFPBGSBVUuK5mIFSQRIjElb9TRg6z2VSeLr/8CeVI4OM6FnAsNNhO/VROy0seizylTt8FRmAEia1CTYOdL/KELjzuJVFjNV1fPgU4247RW14Hc7pTXnk9g2uzvDjJKW8hYvcFhSy9hvNZ1vTvggaMfM4hnAu83nsUF5g67BHQmN0pROb73h1jCuiAECgYEA3TrRxJp2hY1k+C/B02321ZeXB8CjywKniRc6vbNt6+IfmsGgkG//r1QqGJNvB78nBVHAzcj71NxORFfjlcDCHc0QLjHuZSg14LSJoKDD5QbUdR0AX8bKgtUQpERLeFpZ0MKn9FZs6B8x2k1prfCUy77DbdBgjP51CQleCU9fWqECgYEAwyB82h8MtlUcNQfp7QA/vovC+sz+sd6Mg2QxPDhlibiA3bhvzDhn6HgbRv7XILf9/tpQGTbJ9GhAd2cgBOJPs2wdn77cobkEj8rhdjOuLnsfUywaDVNIs8/35yMBRhm4SmZkHjYYoAwFz5gRwV0a+QwCc948uhJYdq9MU52fqxECgYEA1ft0trOo/FjdVunqkrUEUWjE3uzIAS7aGdHsMV0Cb2xSoX+z7MFIELBZ31eLx3RvK8f9s445d5R358cTDOBbYjPc+LG3IwUXx/cYP9QAZuCKU5TvrbQ8YPvxktG0Jf9ObIw7pCyMPqEduUezdlkDs2ca5HbvTLE7RrhWyq6JTsECgYAW4YdieIOgGejd2xi2PvI6oN7zU/iF2Qf3HFedrStS8/zAgzEw7Gha3UKtl5KYdprlOKpt2nviGht9JO2fRP59lq7+nX33xN9hETRRDQxezPdGZISFjX+X/koeo38xvjBbIRiaZlOK6P4Bct6aIxXXoG3lMmlClIYlHLdBktk3UQKBgFhAGrIEAERCmZSetyqGO/VcSyX2LMOBK3Pg2684+GgwmnPnRjymB+MuSbw9P3VmYAEqSqLi9t0qH1RozM/fiww+GQjwCoV6qONNZg3jbP8amk5fa1E5kDqf+/WVLDbintKBDnCqF9+VMDtAJKTYWjCzUCR1Hmqv1U27TPBDlxGh";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6ccE8w8GhSROWLJdPeWSrtzIkTQy0q5R/TZvG8GDoTu1ZYnd/ExeKkeqpYub5OCxoVrg/v3Ouc1FXfmi2oizaygW1T9VBflTlgF3FgTvmCfVrcneIBXEy6ymUbj0Y2wnn6bhDwy76t/yA81S0w1W56P9duYq7qglYH1mvOPcimr0nu2hVKDnCfjP2fIcGMA5+vSoLAOShgr89B0a8npwEa8alaZEMEtVhNrvYf/dATy7BM3UGHTyHVYmh/MxNDL0mr8+G2MH8xlGl+VbNKcHDMm9w+HtoBDCDHmoxygs07YSNCFIPinIyUyCIQr9Xk24hwB3sCTHIXHFIH6Eeqho6QIDAQAB";
    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://738fa0a4.r7.cpolar.top/zfb/notify_url";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://738fa0a4.r7.cpolar.top/zfb/return_url";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "UTF-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

}
